package priv.zgh.forum.re.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZGH
 * @since 2022-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ResourcesSimulator对象", description="")
public class ResourcesSimulator implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "资源名称")
    private String resourcesName;

    @ApiModelProperty(value = "资源文件名")
    private String fileName;

    @ApiModelProperty(value = "资源上传时间")
    private Date updateTime;

    @ApiModelProperty(value = "上传资源的用户id")
    private String updateUserId;

    @TableField("`describe`") // 把该列名查询的时候用`describe`代替(因为describe是MySQL中的关键字,确实再建表的时候就该注意)
    @ApiModelProperty(value = "描述")
    private String describe;

    @ApiModelProperty(value = "是否被审核")
    private Integer isCheck;

    @ApiModelProperty(value = "审核人员用户id")
    private String checkUserId;

    @ApiModelProperty(value = "下载次数")
    private Integer downloadCount;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
